package CSDN;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2025-05-22
 * Time: 13:12
 */
public class Test26 {
    public static void main(String[] args) {
        Timer t = new Timer();
        TimerTask timerTask = new TimerTask() {
            @Override
            public void run() {
                System.out.println("hello");
            }
        };
        t.schedule(timerTask,1000);
    }
}
